package com.bird.设计模式.结构型.代理模式;

/**
 * @data 2022/3/16 15:12
 * @author: bird
 * @description: 订单服务层
 */
public class OrderServiceImpl implements IOrderService {
   private IOrderDao iOrderDao;

    @Override
    public int saveOrder(Order order) {
        iOrderDao=new OrderDaoImpl();
        System.out.println("service 层调用Dao层添加订单成功");
        return iOrderDao.insert(order);
    }
}
